const mongoose = require('mongoose');
const { goodSchema,userSchema } = require('../schemas/index');
//创建model，这个地方的ch_user对应mongodb数据库中ch_users的conllection。
//mongoose会自动改成复数，如模型名：xx―>xxes, kitten―>kittens, money还是money
const User = mongoose.model('tb_user', userSchema);
const Goods = mongoose.model('tb_goods', goodSchema);
module.exports = {
    User,
    Goods
}